module.exports = {
    TABLE_NICK_NAME: '题目管理表', // 表的昵称
    TABLE_DESC: '题目表', // 表的描述
    question: {
        type: "textarea",
        data_type: "VARCHAR(1000)",
        attr: {
            type: 'text',
            placeholder: '请输入题目'///占位符
        },
        label: "题目内容",
        rule: {
            MaxLength: 1000,
            MinLength: 1,
            NotNull: true,
        },
    },
    options_lev: {
        type: "textarea",
        data_type: "VARCHAR(500)",
        attr: {
            type: 'text',
            placeholder: '请输入选择题,判断题的选项内容,比如["A、顺序分级表示","B、间距分级表示","C、数值表示","D、分类表示"]'///占位符
        },
        label: "选项内容",
        rule: {
            MaxLength: 500,
            MinLength: 1,
        },
    },
    answer: {
        type: "textarea",
        data_type: "VARCHAR(1000)",
        attr: {
            type: 'text',
            placeholder: '请输入选择题答案选项(A;B),填空题答案内容，判断题答案(正确/错误),用;号分隔'///占位符
        },
        label: "答案",
        rule: {
            MaxLength: 1000,
            MinLength: 1,
        },

    },
    answer_comment: {
        type: "textarea",
        data_type: "VARCHAR(1000)",
        attr: {
            type: 'text',
            placeholder: '请输入选择题答案的选项内容,填空题的填空顺序规则(顺序/乱序),用;号分隔'///占位符
        },
        label: "答案内容",
        rule: {
            MaxLength: 1000,
            MinLength: 1,
        },
    },
    analysis: {
        type: "textarea",
        data_type: "VARCHAR(1000)",
        attr: {
            type: 'text',
            placeholder: '请输入题目解析'///占位符
        },
        label: "解析",
        rule: {
            MaxLength: 1000,
            MinLength: 1,
        },
    },
    type: {
        label: '类型',
        defaultValue: '1',
        data_type: "INT",
        attr: {
            actions: [
                { name: '选择题', value: '1' },
                { name: '判断题', value: '2' },
                { name: '多选题', value: '3' },
                { name: '填空题', value: '4' },
                { name: '简答题', value: '5' }
            ]
        },
        type: 'select',
        rule: {
            NotNull: true,
        },
    },
    sp_course_id: {
        type: "onlyselect",
        data_type: "BIGINT",
        label: "课程",
    },
    sp_chapter_id: {
        type: "onlyselect",
        data_type: "VARCHAR(50)",
        label: "章节",
    },
    knowledge_points: {
        type: "input",
        data_type: "VARCHAR(100)",
        attr: {
            type: 'text',
            placeholder: '请输入知识点'///占位符
        },
        label: "知识点",
        unList: true,
        rule: {
            MaxLength: 100,
            MinLength: 1,
        },
    },
    use_num: {
        type: "input",
        data_type: "INT",
        defaultValue: '0',
        attr: {
            type: 'text',
            placeholder: '请输入使用次数'///占位符
        },
        label: "使用次数",
    },
    lev: {
        type: "input",
        data_type: "varchar(10)",
        attr: {
            type: 'text',
            placeholder: '等级范围1-10'///占位符
        },
        label: "难度等级",
        rule: {
            MaxLength: 10,
            MinLength: 1,
        },
    },
    status: {
        type: "switch",
        label: "状态",
        unList: true,
    },
    create_by: {
        type: "input",
        data_type: "BIGINT",
        attr: {
            type: 'text',
            placeholder: '请输入创建人'///占位符
        },
        label: "创建人",
        rule: {
            NotNull: false,
            readOnly: true
        },
        unList: true,
    },
    update_by: {
        type: "input",
        data_type: "BIGINT",
        attr: {
            type: 'text',
            placeholder: '请输入更新人'///占位符
        },
        label: "更新人",
        rule: { NotNull: false },
        unList: true,
    },
};
